package org.jeecg.modules.complain.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.complain.entity.RepairConfig;
import org.jeecg.modules.complain.mapper.RepairConfigMapper;
import org.jeecg.modules.complain.service.IRepairConfigService;
import org.jeecg.modules.system.entity.SysDepartPosition;
import org.jeecg.modules.system.entity.SysPosition;
import org.jeecg.modules.system.entity.SysUserPosition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 报修基础配置
 * @Author: jeecg-boot
 * @Date:   2019-07-29
 * @Version: V1.0
 */
@Service
public class RepairConfigServiceImpl extends ServiceImpl<RepairConfigMapper, RepairConfig> implements IRepairConfigService {

    @Autowired
    private  RepairConfigMapper repairConfigMapper;
    @Override
    public List<SysPosition> selectByDepartId(String projectId,List<String> codeList,String id ) {
        return repairConfigMapper.selectByDepartId(projectId,codeList,id );
    }

    @Override
    public RepairConfig selectConfigByDepartId(String departId) {
        return repairConfigMapper.selectConfigByDepartId(departId);
    }

    @Override
    public void delet(String departId) {
        repairConfigMapper.delet(departId);
    }

    @Override
    public List<RepairConfig> findByDepartId(String departId) {
        return repairConfigMapper.findByDepartId(departId);
    }

    @Override
    public List<SysUserPosition> getAllPostionUser(String departId,List codeList,String userId) {
        return repairConfigMapper.getAllPostionUser(departId,codeList,userId);
    }

    @Override
    public String selectDepartId(String departId) {
        return repairConfigMapper.selectDepartId(departId);
    }

    @Override
    public List<RepairConfig> selectAllRepairConfig(List<SysDepartPosition> sysDepartPositionList) {
        return repairConfigMapper.selectAllRepairConfig(sysDepartPositionList);
    }

    @Override
    public String getDepartIdByProjectId(String projectId) {
        return repairConfigMapper.getDepartIdByProjectId(projectId);
    }


}
